<script>
var current='';
function show_this(div_id){
	if(document.getElementById(current)){
		document.getElementById(current).style.display = 'none';
	}
	document.getElementById(div_id).style.display = 'block';
	current = div_id;
}
</script>
<?
$params[sid] = $sid;
$params[action] = "add_domain";
$params[domain_action] = "search";
$url="$baseURL/$webDIR/?".encode_params($params);
?>
<table width="100%">
	<tr>
		<td colspan=2>
			<p><font class="text"><b><?=translate('dom_manager');?></b><br><br><?=translate('dom_manager_desc');?></font></p>
		</td>
	</tr>
</table>
<br>
<form action='<?echo $url?>' method=post>
<table class='bTable' cellpadding=0 cellspacing=0 width='70%'>
        <tr>
                <th colspan=3>
                        Add Domain Name Section
                </th>
        <tr>
        <tr>
		<td>Add Domain Name Here :</td>
		<td><input type=text name=domain></td>
		<td><input type=submit value=Submit></td>
        </tr>
<?
if($_GET[domain]){
	echo "<tr><td>asd</td></tr>";
}
?>
</table>
</form>

<!--
<table class='bTable' cellpadding=0 cellspacing=0 width='70%'>
	<tr>
		<th colspan=2>
			Domain Section	
		</th>
	<tr>
	<tr>
                <td align=center>
                        <input type=radio name=domain_action value='new_transfer' checked onClick='show_this(this.value);'>
                </td>
		<td>
			Register/Transfer Domain Name
		</td>
	</tr>
        <tr>
                <td align=center>
                        <input type=radio name=domain_action value='existing' onClick='show_this(this.value);'>
                </td>
                <td>
                        Add Your Existing Domain Name
                </td>
        </tr>
	<tr>
		<td colspan=2>
			<div id='existing' style='display:none;'>
				<table cellpadding=0 cellspacing=0 width='100%'>
					<tr>
						<td><?=translate('enter_domain');?>:</td>
						<td><input type='text' name='domain'></td>
					</tr>
					<tr>
						<td><?=translate('enter_pass');?>:</td>
						<td><input type='password' name='pass'></td>
					</tr>
					<tr>
						<td><?=translate('reenter_pass');?>:</td>
						<td><input type='password' name='repass'></td>
					</tr>					
				</table>
			</div>		
			<div id='new_transfer' style='display:block;'>
				<table cellpadding=0 cellspacing=0 width='100%'>
					<tr>
						<td>Search Domain Name &nbsp<input type=text name=domain></td>
						<td><input type=submit value=Search></td>
					</tr>
					<?
					if($_POST){
					
					}
					?>
				</table>
			</div>
		</td>
	</tr>
</table>
-->